<?php

/* 广告设置 */
class Advertisement_settingModel extends BaseModel
{
    var $table  = 'advertisement_setting';
    var $prikey = 'advertisement_id';
    var $_name  = 'advertisement_setting';

    //类型
    const TYPE_APP = 1;
    const TYPE_HTML = 2;
    const TYPE_WX_APPLETS = 3;

    //出险位置
    const TYPE_FIRST = 1;
    const TYPE_ME = 2;
    const TYPE_HOMEPAGE = 3;

    //开关
    const CLOSE_UP = 1;
    const CLOSE_OFF = 0;


    public static $typeValue = array(
        self::TYPE_APP => 'app',
        self::TYPE_HTML => 'H5',
        self::TYPE_WX_APPLETS => '小程序',
    );

    public static $typePosition = array(
        self::TYPE_FIRST => '起始页',
        self::TYPE_ME    => '我的',
        self::TYPE_HOMEPAGE => '首页',
    );

    public static $closeValue = array(
        self::CLOSE_OFF => '关闭',
        self::CLOSE_UP  => '开启',
    );
}

?>